package com.coolingme.springboot.dubbo.springbootdubbosampleprovider.service;

import com.coolingme.springboot.dubbo.ISayHelloService;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * dubbo中的@service标签已弃用
 * registry：配置多个配置中心
 * version：配置版本
 *
 * @author wangyue
 * @date 2022/09/30 18:46
 */
@DubboService(registry = {"nanjing", "shanghai"}, version = "1.0")
//@DubboService
public class SayHelloServiceImpl implements ISayHelloService {

    @Override
    public String sayHello(String name) {
        return "[Version 1.0] Hello " + name;
    }

}
